package com.sxkf.template.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxkf.template.entity.CommentLike;
import com.sxkf.template.entity.PostComment;
import com.sxkf.template.vo.response.PostCommentVo;

/**
 * <p>
 * 帖子评论 服务类
 * </p>
 *
 * @author 杨玉龙
 * @since 2024-08-20 11:48:57
 */
public interface PostCommentService extends IService<PostComment> {

    void add(PostComment postComment);

    Page<PostCommentVo> myComment(Integer pageNo, Integer pageSize, Long userId);

    String likeById(CommentLike commentLike);

    Boolean isLike(String userId, String type, String commentId);

    //List<PostComment> listChildComments(Page<PostComment> page,String commentPid);
}
